package com.evil.application.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.evil.application.pojo.dto.order.OrderSnSettingDTO;
import com.evil.application.pojo.dto.order.SnSettingBaseDTO;
import com.evil.application.pojo.entity.GenerateSn;

/**
 * 序列号生成表
 *
 * @author liyang
 * @date 2022-08-08 00:00
 */
public interface GenerateSnService extends IService<GenerateSn> {

    /**
     * 生成编号
     *
     * @param snSettingBaseDTO snSettingDTO
     * @return String
     */
    String generateSn(SnSettingBaseDTO snSettingBaseDTO);

    /**
     * 生成编号（应用订单专用：差别是会根据传参更新自增规则）
     *
     * @param applicationOrderSnSettingDTO applicationOrderSnSettingDTO
     * @return String
     */
    String generateSn(OrderSnSettingDTO applicationOrderSnSettingDTO);
}
